package com.augurit.gzcgwsp.rqqyjyxk.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.augurit.gzcgwsp.excelimportexport.entity.YwRqQyjyxkQysbclmc;
import com.augurit.gzcgwsp.rqqyjyxk.dao.YwRqQyjyxkFinalQysbclmcDao;
import com.augurit.gzcgwsp.rqqyjyxk.entity.YwRqQyjyxkFinalQysbclmc;
import com.augurit.gzcgwsp.rqqyjyxk.service.IYwRqQyjyxkFinalQysbclmcService;

/**
 * 广州市燃气经营许可证许可审批------八、企业申报材料目录
 * @author xgw
 *
 */
@Service("sbclService")
@Transactional
public class YwRqQyjyxkFinalQysbclmcServiceImpl implements IYwRqQyjyxkFinalQysbclmcService {
	@Autowired
	YwRqQyjyxkFinalQysbclmcDao sbclDao;
	/**
	 * 保存 企业申报材料目录
	 * @param ywRqQyjyxkQysbclmc
	 */
	public void save(YwRqQyjyxkFinalQysbclmc entity) {
		sbclDao.save(entity);
	}
	public List<YwRqQyjyxkFinalQysbclmc> getEntitysByQyId(Long qyId) {
		 String hql = "from "+YwRqQyjyxkFinalQysbclmc.class.getName()+" t where t.qyid='" + qyId + "'";
	        List<YwRqQyjyxkFinalQysbclmc> entityList = sbclDao.find(hql);
	        return entityList;
	}
 
	


}
